package co.yixiang.yshop.module.order.controller.app.feedback.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 用户 App - 订单反馈创建 Request VO
 */
@Schema(description = "用户 App - 订单反馈创建 Request VO")
@Data
public class FeedbackCreateReqVO {

    @Schema(description = "订单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1001")
    @NotBlank(message = "订单ID不能为空")
    private String orderId;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2001")
    @NotBlank(message = "用户ID不能为空")
    private String userId;

    @Schema(description = "反馈内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "太甜了，建议减糖")
    @NotBlank(message = "反馈内容不能为空")
    @Size(max = 1024, message = "反馈内容长度不能超过1024个字符")
    private String message;
}